# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations


class Migration(migrations.Migration):

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='AccountAdjustRecord',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('user_id', models.IntegerField()),
                ('amount', models.BigIntegerField()),
                ('accounting_direction', models.IntegerField()),
                ('adjust_reason', models.CharField(max_length=128)),
                ('remark', models.CharField(max_length=64)),
                ('admin_id', models.IntegerField()),
                ('create_time', models.DateTimeField(null=True, blank=True)),
                ('update_time', models.DateTimeField(null=True, blank=True)),
            ],
            options={
                'db_table': 'account_adjust_record',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='AccountBalanceNoticeLogs',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('user_id', models.IntegerField(null=True, blank=True)),
                ('admin_id', models.IntegerField(null=True, blank=True)),
                ('content', models.CharField(max_length=255, null=True, blank=True)),
                ('content_admin', models.CharField(max_length=255, null=True, blank=True)),
                ('detail', models.TextField(null=True, blank=True)),
                ('created_at', models.DateTimeField()),
                ('updated_at', models.DateTimeField()),
                ('percent_rate', models.FloatField(null=True, blank=True)),
                ('top_up_id', models.IntegerField(null=True, blank=True)),
            ],
            options={
                'db_table': 'account_balance_notice_logs',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='AccountingDetail',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('user_id', models.IntegerField()),
                ('trans_amount', models.BigIntegerField()),
                ('trans_type', models.IntegerField()),
                ('related_id', models.BigIntegerField()),
                ('accounting_direction', models.IntegerField()),
                ('balance', models.BigIntegerField()),
                ('remark', models.CharField(max_length=256)),
                ('create_time', models.DateTimeField(null=True, blank=True)),
            ],
            options={
                'db_table': 'accounting_detail',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='AdjustPrices',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('user_id', models.IntegerField()),
                ('unit_price', models.TextField(null=True, blank=True)),
                ('quota', models.TextField(null=True, blank=True)),
                ('effect_time', models.DateTimeField(null=True, blank=True)),
                ('expire_time', models.DateTimeField(null=True, blank=True)),
                ('adjust_time', models.DateTimeField(null=True, blank=True)),
                ('adjust_admin_id', models.IntegerField(null=True, blank=True)),
            ],
            options={
                'db_table': 'adjust_prices',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='Admins',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('email', models.CharField(unique=True, max_length=255)),
                ('password_digest', models.CharField(max_length=255)),
                ('name', models.CharField(max_length=255)),
                ('group', models.CharField(max_length=255)),
                ('permission', models.IntegerField()),
                ('enabled', models.IntegerField(null=True, blank=True)),
                ('created_at', models.DateTimeField()),
                ('updated_at', models.DateTimeField()),
                ('mobile', models.CharField(max_length=255, null=True, blank=True)),
                ('data_range', models.IntegerField(null=True, blank=True)),
                ('department_id', models.BigIntegerField(null=True, blank=True)),
                ('area_id', models.BigIntegerField(null=True, blank=True)),
                ('admin_type', models.IntegerField(null=True, blank=True)),
                ('is_ai_admin', models.IntegerField()),
            ],
            options={
                'db_table': 'admins',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='AdminsNotifications',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('admin_id', models.BigIntegerField(null=True, blank=True)),
                ('announcement_id', models.BigIntegerField(null=True, blank=True)),
                ('created_at', models.DateTimeField()),
                ('updated_at', models.DateTimeField()),
            ],
            options={
                'db_table': 'admins_notifications',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='ApiCallTimeStats',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('api_id', models.CharField(max_length=255)),
                ('date', models.IntegerField()),
                ('first_call_time', models.DateTimeField()),
                ('last_call_time', models.DateTimeField()),
                ('first_api', models.CharField(max_length=255)),
                ('last_api', models.CharField(max_length=255)),
                ('created_at', models.DateTimeField(null=True, blank=True)),
                ('updated_at', models.DateTimeField(null=True, blank=True)),
            ],
            options={
                'db_table': 'api_call_time_stats',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='ApiChannel',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('api_id', models.BigIntegerField()),
                ('channel_id', models.BigIntegerField()),
                ('status', models.IntegerField()),
                ('description', models.CharField(max_length=200)),
                ('create_time', models.DateTimeField()),
                ('update_time', models.DateTimeField()),
            ],
            options={
                'db_table': 'api_channel',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='ApiGroups',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('name', models.CharField(max_length=255)),
                ('created_at', models.DateTimeField()),
                ('updated_at', models.DateTimeField()),
            ],
            options={
                'db_table': 'api_groups',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='ApiPerfStats',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('api', models.CharField(max_length=255)),
                ('response_code', models.IntegerField()),
                ('time', models.DateTimeField()),
                ('count', models.IntegerField()),
                ('avg_response_time', models.IntegerField()),
            ],
            options={
                'db_table': 'api_perf_stats',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='ApiPriceStatisticTotals',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('date', models.IntegerField(null=True, blank=True)),
                ('api', models.CharField(max_length=255, null=True, blank=True)),
                ('api_call_times', models.IntegerField(null=True, blank=True)),
                ('income', models.DecimalField(null=True, max_digits=15, decimal_places=4, blank=True)),
                ('user_count', models.IntegerField(null=True, blank=True)),
                ('created_at', models.DateTimeField()),
                ('updated_at', models.DateTimeField()),
                ('invoked_times', models.IntegerField(null=True, blank=True)),
                ('succeeded_times', models.IntegerField(null=True, blank=True)),
                ('charged_times', models.IntegerField(null=True, blank=True)),
                ('active_users', models.IntegerField(null=True, blank=True)),
                ('new_users', models.IntegerField(null=True, blank=True)),
                ('response_codes', models.TextField(null=True, blank=True)),
                ('income_new', models.DecimalField(null=True, max_digits=15, decimal_places=4, blank=True)),
            ],
            options={
                'db_table': 'api_price_statistic_totals',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='ApiPriceStatisticTotals2',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('date', models.IntegerField(null=True, blank=True)),
                ('api', models.CharField(max_length=255, null=True, blank=True)),
                ('api_call_times', models.IntegerField(null=True, blank=True)),
                ('income', models.DecimalField(null=True, max_digits=15, decimal_places=4, blank=True)),
                ('user_count', models.IntegerField(null=True, blank=True)),
                ('created_at', models.DateTimeField()),
                ('updated_at', models.DateTimeField()),
                ('invoked_times', models.IntegerField(null=True, blank=True)),
                ('succeeded_times', models.IntegerField(null=True, blank=True)),
                ('charged_times', models.IntegerField(null=True, blank=True)),
                ('active_users', models.IntegerField(null=True, blank=True)),
                ('new_users', models.IntegerField(null=True, blank=True)),
                ('response_codes', models.TextField(null=True, blank=True)),
                ('income_new', models.DecimalField(null=True, max_digits=15, decimal_places=4, blank=True)),
            ],
            options={
                'db_table': 'api_price_statistic_totals2',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='ApiPriceStatisticUsers',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('user_id', models.IntegerField(null=True, blank=True)),
                ('date', models.IntegerField(null=True, blank=True)),
                ('api', models.CharField(max_length=255, null=True, blank=True)),
                ('api_call_times', models.IntegerField(null=True, blank=True)),
                ('income', models.DecimalField(null=True, max_digits=15, decimal_places=4, blank=True)),
                ('created_at', models.DateTimeField()),
                ('updated_at', models.DateTimeField()),
                ('invoked_times', models.IntegerField(null=True, blank=True)),
                ('succeeded_times', models.IntegerField(null=True, blank=True)),
                ('charged_times', models.IntegerField(null=True, blank=True)),
                ('response_codes', models.TextField(null=True, blank=True)),
                ('api_id', models.CharField(max_length=255, null=True, blank=True)),
                ('app_id', models.IntegerField(null=True, blank=True)),
                ('income_new', models.DecimalField(null=True, max_digits=15, decimal_places=4, blank=True)),
            ],
            options={
                'db_table': 'api_price_statistic_users',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='ApiResponseTimes',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('api', models.CharField(max_length=255)),
                ('mean', models.FloatField(null=True, blank=True)),
                ('minimum', models.FloatField(null=True, blank=True)),
                ('maximum', models.FloatField(null=True, blank=True)),
                ('median', models.FloatField(null=True, blank=True)),
                ('ninety_percent', models.FloatField(null=True, blank=True)),
                ('ninety_five_percent', models.FloatField(null=True, blank=True)),
                ('quantity', models.IntegerField(null=True, blank=True)),
                ('date', models.IntegerField(null=True, blank=True)),
                ('created_at', models.DateTimeField()),
                ('updated_at', models.DateTimeField()),
            ],
            options={
                'db_table': 'api_response_times',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='Apis',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('path', models.CharField(max_length=255)),
                ('quota', models.IntegerField(null=True, blank=True)),
                ('api_group_id', models.BigIntegerField(null=True, blank=True)),
                ('power', models.IntegerField()),
                ('default_on', models.IntegerField(null=True, blank=True)),
                ('created_at', models.DateTimeField()),
                ('updated_at', models.DateTimeField()),
                ('service_name', models.CharField(max_length=255, null=True, blank=True)),
            ],
            options={
                'db_table': 'apis',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='ApisSupplierServices',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('api_id', models.BigIntegerField(null=True, blank=True)),
                ('supplier_service_id', models.BigIntegerField(null=True, blank=True)),
                ('created_at', models.DateTimeField()),
                ('updated_at', models.DateTimeField()),
            ],
            options={
                'db_table': 'apis_supplier_services',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='ApiStats',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('api_id', models.CharField(max_length=255)),
                ('api', models.CharField(max_length=255)),
                ('fake_api', models.IntegerField()),
                ('response_code', models.IntegerField()),
                ('date', models.IntegerField()),
                ('count', models.IntegerField()),
                ('avg_response_time', models.IntegerField(null=True, blank=True)),
                ('created_at', models.DateTimeField(null=True, blank=True)),
                ('updated_at', models.DateTimeField(null=True, blank=True)),
                ('free_count', models.IntegerField(null=True, blank=True)),
                ('error_status', models.TextField(null=True, blank=True)),
                ('error_reason', models.TextField(null=True, blank=True)),
            ],
            options={
                'db_table': 'api_stats',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='ApiStatsAll',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('api_id', models.CharField(max_length=255)),
                ('api', models.CharField(max_length=255)),
                ('fake_api', models.IntegerField()),
                ('response_code', models.IntegerField()),
                ('date', models.IntegerField()),
                ('count', models.IntegerField()),
                ('avg_response_time', models.IntegerField()),
                ('created_at', models.DateTimeField(null=True, blank=True)),
                ('updated_at', models.DateTimeField(null=True, blank=True)),
                ('free_count', models.IntegerField(null=True, blank=True)),
                ('error_status', models.TextField(null=True, blank=True)),
                ('error_reason', models.TextField(null=True, blank=True)),
            ],
            options={
                'db_table': 'api_stats_all',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='ApiSupplier',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('en_name', models.CharField(max_length=128, null=True, blank=True)),
                ('ch_name', models.CharField(max_length=128, null=True, blank=True)),
                ('create_at', models.DateTimeField()),
            ],
            options={
                'db_table': 'api_supplier',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='ApiSupplierApis',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('supplier_api_id', models.BigIntegerField()),
                ('api_id', models.BigIntegerField()),
            ],
            options={
                'db_table': 'api_supplier_apis',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='ApiSupplierState',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('api', models.CharField(max_length=255, null=True, blank=True)),
                ('supplier', models.CharField(max_length=50, null=True, blank=True)),
                ('status', models.CharField(max_length=10, null=True, blank=True)),
                ('cnt', models.IntegerField(null=True, blank=True)),
                ('log_date', models.DateField(null=True, blank=True)),
                ('created_at', models.DateTimeField()),
            ],
            options={
                'db_table': 'api_supplier_state',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='AppApiChannel',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('app_id', models.CharField(max_length=255)),
                ('api_channel_id', models.BigIntegerField()),
                ('priority', models.SmallIntegerField()),
                ('failure_strategy', models.IntegerField()),
                ('status', models.IntegerField()),
                ('create_time', models.DateTimeField()),
                ('update_time', models.DateTimeField()),
                ('percent', models.SmallIntegerField()),
                ('channel_route_id', models.BigIntegerField(null=True, blank=True)),
            ],
            options={
                'db_table': 'app_api_channel',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='AppChannelRoute',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('app_id', models.BigIntegerField()),
                ('api_id', models.BigIntegerField()),
                ('channel_route_id', models.BigIntegerField()),
                ('create_time', models.DateTimeField(null=True, blank=True)),
                ('update_time', models.DateTimeField(null=True, blank=True)),
            ],
            options={
                'db_table': 'app_channel_route',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='Apps',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('user_id', models.IntegerField(null=True, blank=True)),
                ('api_id', models.CharField(unique=True, max_length=255)),
                ('name', models.CharField(max_length=255, null=True, blank=True)),
                ('description', models.CharField(max_length=255, null=True, blank=True)),
                ('info', models.TextField(null=True, blank=True)),
                ('created_at', models.DateTimeField()),
                ('updated_at', models.DateTimeField()),
                ('enabled', models.IntegerField(null=True, blank=True)),
                ('first_call_time', models.DateTimeField(null=True, blank=True)),
                ('last_call_time', models.DateTimeField(null=True, blank=True)),
                ('quota', models.TextField(null=True, blank=True)),
                ('api_secret', models.CharField(max_length=255)),
                ('rate_limit', models.IntegerField(null=True, blank=True)),
                ('platform', models.TextField(null=True, blank=True)),
                ('expire_at', models.DateTimeField(null=True, blank=True)),
                ('feature_ver', models.CharField(max_length=255, null=True, blank=True)),
                ('search_feature_ver', models.CharField(max_length=255, null=True, blank=True)),
                ('search_db_max_count', models.IntegerField(null=True, blank=True)),
                ('search_db_size', models.IntegerField(null=True, blank=True)),
                ('permission', models.TextField(null=True, blank=True)),
            ],
            options={
                'db_table': 'apps',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='Areas',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('department_id', models.BigIntegerField(null=True, blank=True)),
                ('name', models.CharField(max_length=255, null=True, blank=True)),
                ('created_at', models.DateTimeField()),
                ('updated_at', models.DateTimeField()),
            ],
            options={
                'db_table': 'areas',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='ArInternalMetadata',
            fields=[
                ('key', models.CharField(max_length=255, serialize=False, primary_key=True)),
                ('value', models.CharField(max_length=255, null=True, blank=True)),
                ('created_at', models.DateTimeField()),
                ('updated_at', models.DateTimeField()),
            ],
            options={
                'db_table': 'ar_internal_metadata',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='AuditLogs',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('operator_id', models.IntegerField(null=True, blank=True)),
                ('operator_type', models.CharField(max_length=255, null=True, blank=True)),
                ('api_id', models.CharField(max_length=255, null=True, blank=True)),
                ('action', models.CharField(max_length=255, null=True, blank=True)),
                ('before', models.TextField(null=True, blank=True)),
                ('after', models.TextField(null=True, blank=True)),
                ('created_at', models.DateTimeField()),
                ('updated_at', models.DateTimeField()),
                ('target_id', models.IntegerField(null=True, blank=True)),
                ('target_type', models.CharField(max_length=255, null=True, blank=True)),
            ],
            options={
                'db_table': 'audit_logs',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='BankcardInfo',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('bankcard_number', models.CharField(max_length=128)),
                ('name', models.CharField(max_length=30)),
                ('id_number', models.CharField(max_length=128)),
                ('phone', models.CharField(max_length=20)),
                ('account_type', models.IntegerField(null=True, blank=True)),
                ('status', models.IntegerField(null=True, blank=True)),
                ('request_id', models.CharField(max_length=64)),
                ('create_time', models.DateTimeField(null=True, blank=True)),
                ('update_time', models.DateTimeField(null=True, blank=True)),
            ],
            options={
                'db_table': 'bankcard_info',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='BankcardPhoneCache',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('auth_id', models.BigIntegerField()),
                ('phone', models.BigIntegerField(null=True, blank=True)),
                ('bankcard', models.BigIntegerField(null=True, blank=True)),
                ('create_time', models.DateTimeField()),
                ('update_time', models.DateTimeField()),
            ],
            options={
                'db_table': 'bankcard_phone_cache',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='BusinessRemind',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('user_id', models.IntegerField(unique=True)),
                ('remind_type', models.IntegerField()),
                ('remind_threshold', models.CharField(max_length=16)),
                ('is_sms', models.IntegerField()),
                ('email', models.CharField(max_length=64)),
                ('phone', models.CharField(max_length=16)),
                ('status', models.IntegerField()),
                ('create_time', models.DateTimeField(null=True, blank=True)),
                ('update_time', models.DateTimeField(null=True, blank=True)),
            ],
            options={
                'db_table': 'business_remind',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='ChangeLogs',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('klass', models.CharField(max_length=255, null=True, blank=True)),
                ('klass_id', models.CharField(max_length=255, null=True, blank=True)),
                ('by', models.CharField(max_length=255, null=True, blank=True)),
                ('at', models.DateTimeField(null=True, blank=True)),
                ('operation', models.CharField(max_length=255, null=True, blank=True)),
                ('description', models.TextField(null=True, blank=True)),
                ('changed_fields', models.TextField(null=True, blank=True)),
            ],
            options={
                'db_table': 'change_logs',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='Channel',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('name', models.CharField(max_length=100)),
                ('status', models.IntegerField()),
                ('channel_type', models.SmallIntegerField()),
                ('base_url', models.CharField(max_length=200, null=True, blank=True)),
                ('description', models.CharField(max_length=200, null=True, blank=True)),
                ('create_time', models.DateTimeField()),
                ('update_time', models.DateTimeField()),
            ],
            options={
                'db_table': 'channel',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='ChannelRoute',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('name', models.CharField(max_length=64)),
                ('service_type', models.CharField(max_length=64)),
                ('status', models.IntegerField()),
                ('operator_id', models.BigIntegerField()),
                ('remark', models.CharField(max_length=500)),
                ('create_time', models.DateTimeField(null=True, blank=True)),
                ('update_time', models.DateTimeField(null=True, blank=True)),
            ],
            options={
                'db_table': 'channel_route',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='Company',
            fields=[
                ('id', models.IntegerField(serialize=False, primary_key=True)),
                ('name', models.CharField(max_length=255)),
                ('contact', models.CharField(max_length=255, null=True, blank=True)),
                ('email', models.CharField(max_length=255, null=True, blank=True)),
                ('mobile', models.CharField(max_length=255, null=True, blank=True)),
                ('industry', models.CharField(max_length=255, null=True, blank=True)),
                ('app_scene', models.CharField(max_length=255, null=True, blank=True)),
                ('create_time', models.DateTimeField(null=True, blank=True)),
            ],
            options={
                'db_table': 'company',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='Configurations',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('key', models.CharField(max_length=255)),
                ('value', models.TextField()),
                ('created_at', models.DateTimeField()),
                ('updated_at', models.DateTimeField()),
            ],
            options={
                'db_table': 'configurations',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='DeductionRecord',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('user_id', models.IntegerField()),
                ('amount', models.BigIntegerField()),
                ('charging_start', models.DateTimeField()),
                ('charging_end', models.DateTimeField()),
                ('charging_api', models.CharField(max_length=32)),
                ('trans_status', models.IntegerField()),
                ('create_time', models.DateTimeField(null=True, blank=True)),
                ('update_time', models.DateTimeField(null=True, blank=True)),
            ],
            options={
                'db_table': 'deduction_record',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='DelayedJobs',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('priority', models.IntegerField()),
                ('attempts', models.IntegerField()),
                ('handler', models.TextField(null=True, blank=True)),
                ('last_error', models.TextField(null=True, blank=True)),
                ('run_at', models.DateTimeField(null=True, blank=True)),
                ('locked_at', models.DateTimeField(null=True, blank=True)),
                ('failed_at', models.DateTimeField(null=True, blank=True)),
                ('locked_by', models.CharField(max_length=255, null=True, blank=True)),
                ('queue', models.CharField(max_length=255, null=True, blank=True)),
                ('created_at', models.DateTimeField(null=True, blank=True)),
                ('updated_at', models.DateTimeField(null=True, blank=True)),
            ],
            options={
                'db_table': 'delayed_jobs',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='Deliveries',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('private_user_id', models.IntegerField(null=True, blank=True)),
                ('private_project_id', models.IntegerField(null=True, blank=True)),
                ('delivery_name', models.CharField(max_length=255, null=True, blank=True)),
                ('version_num', models.CharField(max_length=255, null=True, blank=True)),
                ('upload_time', models.DateTimeField(null=True, blank=True)),
                ('delivery_notes', models.CharField(max_length=255, null=True, blank=True)),
                ('create_at', models.DateTimeField(null=True, blank=True)),
                ('update_at', models.DateTimeField(null=True, blank=True)),
                ('avatar', models.CharField(max_length=255, null=True, blank=True)),
            ],
            options={
                'db_table': 'deliveries',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='Departments',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('name', models.CharField(max_length=255, null=True, blank=True)),
                ('created_at', models.DateTimeField()),
                ('updated_at', models.DateTimeField()),
            ],
            options={
                'db_table': 'departments',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='ErrorResponses',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('date', models.IntegerField(null=True, blank=True)),
                ('user_id', models.BigIntegerField()),
                ('api', models.CharField(max_length=255, null=True, blank=True)),
                ('app_id', models.IntegerField(null=True, blank=True)),
                ('response_code', models.IntegerField(null=True, blank=True)),
                ('content', models.CharField(max_length=255, null=True, blank=True)),
                ('times', models.IntegerField(null=True, blank=True)),
                ('type', models.CharField(max_length=255, null=True, blank=True)),
                ('created_at', models.DateTimeField()),
                ('updated_at', models.DateTimeField()),
            ],
            options={
                'db_table': 'error_responses',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='ErrorResponsesAll',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('date', models.IntegerField(null=True, blank=True)),
                ('user_id', models.BigIntegerField()),
                ('api', models.CharField(max_length=255, null=True, blank=True)),
                ('app_id', models.IntegerField(null=True, blank=True)),
                ('response_code', models.IntegerField(null=True, blank=True)),
                ('content', models.CharField(max_length=255, null=True, blank=True)),
                ('times', models.IntegerField(null=True, blank=True)),
                ('type', models.CharField(max_length=255, null=True, blank=True)),
                ('created_at', models.DateTimeField()),
                ('updated_at', models.DateTimeField()),
            ],
            options={
                'db_table': 'error_responses_all',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='ErrorResponsesPerHour',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('date', models.IntegerField(null=True, blank=True)),
                ('user_id', models.BigIntegerField()),
                ('api', models.CharField(max_length=255, null=True, blank=True)),
                ('api_id', models.CharField(max_length=255, null=True, blank=True)),
                ('response_code', models.IntegerField(null=True, blank=True)),
                ('content', models.CharField(max_length=255, null=True, blank=True)),
                ('times', models.IntegerField(null=True, blank=True)),
                ('type', models.CharField(max_length=255, null=True, blank=True)),
                ('created_at', models.DateTimeField()),
                ('updated_at', models.DateTimeField()),
            ],
            options={
                'db_table': 'error_responses_per_hour',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='ExceptionLogs',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('at', models.DateTimeField(null=True, blank=True)),
                ('error_klass', models.CharField(max_length=255, null=True, blank=True)),
                ('message', models.CharField(max_length=255, null=True, blank=True)),
                ('times', models.IntegerField(null=True, blank=True)),
                ('resolved', models.IntegerField(null=True, blank=True)),
                ('content', models.TextField(null=True, blank=True)),
                ('created_at', models.DateTimeField()),
                ('updated_at', models.DateTimeField()),
                ('request_ids', models.TextField(null=True, blank=True)),
            ],
            options={
                'db_table': 'exception_logs',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='FinanceBills',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('plan_id', models.BigIntegerField(null=True, blank=True)),
                ('user_id', models.BigIntegerField(null=True, blank=True)),
                ('year', models.IntegerField()),
                ('month', models.IntegerField()),
                ('price', models.DecimalField(null=True, max_digits=15, decimal_places=4, blank=True)),
                ('deleted', models.IntegerField(null=True, blank=True)),
                ('created_at', models.DateTimeField()),
                ('updated_at', models.DateTimeField()),
            ],
            options={
                'db_table': 'finance_bills',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='FinanceConsumptions',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('api_id', models.BigIntegerField(null=True, blank=True)),
                ('user_id', models.BigIntegerField(null=True, blank=True)),
                ('plan_id', models.BigIntegerField(null=True, blank=True)),
                ('up_to', models.DateField(null=True, blank=True)),
                ('hour', models.IntegerField(null=True, blank=True)),
                ('detail_type', models.CharField(max_length=255, null=True, blank=True)),
                ('snapshot', models.TextField(null=True, blank=True)),
                ('sum_times', models.IntegerField(null=True, blank=True)),
                ('times', models.IntegerField(null=True, blank=True)),
                ('archived', models.IntegerField(null=True, blank=True)),
                ('charged_price', models.DecimalField(null=True, max_digits=15, decimal_places=4, blank=True)),
                ('created_at', models.DateTimeField()),
                ('updated_at', models.DateTimeField()),
            ],
            options={
                'db_table': 'finance_consumptions',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='FinanceContracts',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('name', models.CharField(max_length=255, null=True, blank=True)),
                ('key', models.CharField(max_length=255, null=True, blank=True)),
                ('sale_content', models.TextField(null=True, blank=True)),
                ('start_date', models.DateField(null=True, blank=True)),
                ('end_date', models.DateField(null=True, blank=True)),
                ('admin_id', models.BigIntegerField(null=True, blank=True)),
                ('user_id', models.BigIntegerField(null=True, blank=True)),
                ('created_at', models.DateTimeField()),
                ('updated_at', models.DateTimeField()),
                ('deleted', models.IntegerField(null=True, blank=True)),
            ],
            options={
                'db_table': 'finance_contracts',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='FinanceTopUpLogs',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('top_up_id', models.CharField(max_length=255, null=True, blank=True)),
                ('user_id', models.BigIntegerField(null=True, blank=True)),
                ('company_name', models.CharField(max_length=255, null=True, blank=True)),
                ('action_type', models.IntegerField(null=True, blank=True)),
                ('account_status', models.IntegerField(null=True, blank=True)),
                ('action_detail', models.TextField(null=True, blank=True)),
                ('admin_id', models.BigIntegerField(null=True, blank=True)),
                ('created_at', models.DateTimeField()),
                ('updated_at', models.DateTimeField()),
            ],
            options={
                'db_table': 'finance_top_up_logs',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='FinanceTopUps',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('top_up_id', models.CharField(max_length=255, null=True, blank=True)),
                ('user_id', models.BigIntegerField(null=True, blank=True)),
                ('admin_id', models.BigIntegerField(null=True, blank=True)),
                ('value', models.DecimalField(null=True, max_digits=15, decimal_places=4, blank=True)),
                ('created_on', models.DateField(null=True, blank=True)),
                ('accounted_at', models.DateField(null=True, blank=True)),
                ('bank_account', models.CharField(max_length=255, null=True, blank=True)),
                ('contract_id', models.BigIntegerField(null=True, blank=True)),
                ('created_at', models.DateTimeField()),
                ('updated_at', models.DateTimeField()),
                ('deleted', models.IntegerField(null=True, blank=True)),
            ],
            options={
                'db_table': 'finance_top_ups',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='HourlyApiPriceStatisticTotals',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('date', models.IntegerField(null=True, blank=True)),
                ('invoked_times', models.IntegerField(null=True, blank=True)),
                ('charged_times', models.IntegerField(null=True, blank=True)),
                ('succeeded_times', models.IntegerField(null=True, blank=True)),
                ('active_users', models.IntegerField(null=True, blank=True)),
                ('new_users', models.IntegerField(null=True, blank=True)),
                ('income', models.DecimalField(null=True, max_digits=15, decimal_places=4, blank=True)),
                ('api', models.CharField(max_length=255, null=True, blank=True)),
                ('response_codes', models.TextField(null=True, blank=True)),
                ('created_at', models.DateTimeField(null=True, blank=True)),
                ('updated_at', models.DateTimeField(null=True, blank=True)),
                ('income_new', models.DecimalField(null=True, max_digits=15, decimal_places=4, blank=True)),
            ],
            options={
                'db_table': 'hourly_api_price_statistic_totals',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='HourlyApiPriceStatisticTotalsTmp',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('date', models.IntegerField(null=True, blank=True)),
                ('invoked_times', models.IntegerField(null=True, blank=True)),
                ('charged_times', models.IntegerField(null=True, blank=True)),
                ('succeeded_times', models.IntegerField(null=True, blank=True)),
                ('active_users', models.IntegerField(null=True, blank=True)),
                ('new_users', models.IntegerField(null=True, blank=True)),
                ('income', models.DecimalField(null=True, max_digits=15, decimal_places=4, blank=True)),
                ('api', models.CharField(max_length=255, null=True, blank=True)),
                ('response_codes', models.TextField(null=True, blank=True)),
                ('created_at', models.DateTimeField(null=True, blank=True)),
                ('updated_at', models.DateTimeField(null=True, blank=True)),
                ('income_new', models.DecimalField(null=True, max_digits=15, decimal_places=4, blank=True)),
            ],
            options={
                'db_table': 'hourly_api_price_statistic_totals_tmp',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='HourlyApiPriceStatisticUsers',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('user_id', models.IntegerField(null=True, blank=True)),
                ('date', models.IntegerField(null=True, blank=True)),
                ('invoked_times', models.IntegerField(null=True, blank=True)),
                ('charged_times', models.IntegerField(null=True, blank=True)),
                ('succeeded_times', models.IntegerField(null=True, blank=True)),
                ('income', models.DecimalField(null=True, max_digits=15, decimal_places=4, blank=True)),
                ('api', models.CharField(max_length=255, null=True, blank=True)),
                ('created_at', models.DateTimeField()),
                ('updated_at', models.DateTimeField()),
                ('response_codes', models.TextField(null=True, blank=True)),
                ('api_id', models.CharField(max_length=255, null=True, blank=True)),
                ('app_id', models.IntegerField(null=True, blank=True)),
                ('income_new', models.DecimalField(null=True, max_digits=15, decimal_places=4, blank=True)),
            ],
            options={
                'db_table': 'hourly_api_price_statistic_users',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='HourlyApiPriceStatisticUsersTmp',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('user_id', models.IntegerField(null=True, blank=True)),
                ('date', models.IntegerField(null=True, blank=True)),
                ('invoked_times', models.IntegerField(null=True, blank=True)),
                ('charged_times', models.IntegerField(null=True, blank=True)),
                ('succeeded_times', models.IntegerField(null=True, blank=True)),
                ('income', models.DecimalField(null=True, max_digits=15, decimal_places=4, blank=True)),
                ('api', models.CharField(max_length=255, null=True, blank=True)),
                ('created_at', models.DateTimeField()),
                ('updated_at', models.DateTimeField()),
                ('response_codes', models.TextField(null=True, blank=True)),
                ('api_id', models.CharField(max_length=255, null=True, blank=True)),
                ('app_id', models.IntegerField(null=True, blank=True)),
                ('income_new', models.DecimalField(null=True, max_digits=15, decimal_places=4, blank=True)),
            ],
            options={
                'db_table': 'hourly_api_price_statistic_users_tmp',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='HourlyApiPriceUserLogs',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('api_id', models.BigIntegerField(null=True, blank=True)),
                ('user_id', models.BigIntegerField(null=True, blank=True)),
                ('up_to', models.DateField(null=True, blank=True)),
                ('hour', models.IntegerField(null=True, blank=True)),
                ('times', models.IntegerField(null=True, blank=True)),
                ('charged_price', models.DecimalField(null=True, max_digits=15, decimal_places=4, blank=True)),
                ('created_at', models.DateTimeField()),
                ('updated_at', models.DateTimeField()),
                ('app_id', models.BigIntegerField(null=True, blank=True)),
                ('charged_times', models.IntegerField(null=True, blank=True)),
                ('api', models.CharField(max_length=255, null=True, blank=True)),
                ('date', models.IntegerField(null=True, blank=True)),
            ],
            options={
                'db_table': 'hourly_api_price_user_logs',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='HourlyApiPriceUserLogsTmp',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('api_id', models.BigIntegerField(null=True, blank=True)),
                ('user_id', models.BigIntegerField(null=True, blank=True)),
                ('up_to', models.DateField(null=True, blank=True)),
                ('hour', models.IntegerField(null=True, blank=True)),
                ('times', models.IntegerField(null=True, blank=True)),
                ('charged_price', models.DecimalField(null=True, max_digits=15, decimal_places=4, blank=True)),
                ('created_at', models.DateTimeField()),
                ('updated_at', models.DateTimeField()),
                ('app_id', models.BigIntegerField(null=True, blank=True)),
                ('charged_times', models.IntegerField(null=True, blank=True)),
                ('api', models.CharField(max_length=255, null=True, blank=True)),
                ('date', models.IntegerField(null=True, blank=True)),
            ],
            options={
                'db_table': 'hourly_api_price_user_logs_tmp',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='IdNameCache',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('id_number', models.BigIntegerField(unique=True)),
                ('name', models.CharField(max_length=255)),
                ('create_time', models.DateTimeField()),
                ('update_time', models.DateTimeField()),
            ],
            options={
                'db_table': 'id_name_cache',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='InvoiceBalance',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('user_id', models.IntegerField(unique=True)),
                ('amount', models.IntegerField()),
                ('status', models.IntegerField()),
                ('create_time', models.DateTimeField(null=True, blank=True)),
                ('update_time', models.DateTimeField(null=True, blank=True)),
            ],
            options={
                'db_table': 'invoice_balance',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='InvoiceBalanceDetail',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('user_id', models.IntegerField()),
                ('trans_amount', models.IntegerField()),
                ('trans_type', models.IntegerField()),
                ('related_id', models.BigIntegerField()),
                ('accounting_direction', models.IntegerField()),
                ('balance', models.IntegerField()),
                ('create_time', models.DateTimeField(null=True, blank=True)),
                ('remark', models.CharField(max_length=256)),
            ],
            options={
                'db_table': 'invoice_balance_detail',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='InvoiceRecord',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('user_id', models.IntegerField()),
                ('amount', models.IntegerField()),
                ('invoice_type', models.IntegerField()),
                ('company', models.CharField(max_length=32)),
                ('taxpayer_registration_number', models.CharField(max_length=32)),
                ('company_address', models.CharField(max_length=32)),
                ('company_phone', models.CharField(max_length=16)),
                ('opening_bank', models.CharField(max_length=32)),
                ('opening_bank_account', models.CharField(max_length=32)),
                ('certify_path', models.CharField(max_length=64)),
                ('recipients', models.CharField(max_length=16)),
                ('address', models.CharField(max_length=32)),
                ('phone', models.CharField(max_length=16)),
                ('invoice_status', models.IntegerField()),
                ('create_time', models.DateTimeField(null=True, blank=True)),
                ('update_time', models.DateTimeField(null=True, blank=True)),
            ],
            options={
                'db_table': 'invoice_record',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='IpManage',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('ip', models.CharField(max_length=20)),
                ('username', models.CharField(max_length=20)),
                ('pwd', models.CharField(max_length=20)),
                ('remark', models.CharField(max_length=30)),
            ],
            options={
                'db_table': 'ip_manage',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='LicenseApply',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('user_id', models.IntegerField()),
                ('bundles', models.TextField()),
                ('apply_status', models.IntegerField()),
                ('create_time', models.DateTimeField(null=True, blank=True)),
                ('update_time', models.DateTimeField(null=True, blank=True)),
            ],
            options={
                'db_table': 'license_apply',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='LicenseDistributions',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('license', models.TextField(null=True, blank=True)),
                ('md5', models.CharField(max_length=255, null=True, blank=True)),
                ('expires', models.DateField(null=True, blank=True)),
                ('created_at', models.DateTimeField()),
                ('updated_at', models.DateTimeField()),
            ],
            options={
                'db_table': 'license_distributions',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='Messages',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('title', models.CharField(max_length=255, null=True, blank=True)),
                ('content', models.TextField(null=True, blank=True)),
                ('message_url', models.CharField(max_length=255, null=True, blank=True)),
                ('created_at', models.DateTimeField()),
                ('updated_at', models.DateTimeField()),
            ],
            options={
                'db_table': 'messages',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='NotificationCategories',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('name', models.CharField(max_length=255, null=True, blank=True)),
                ('deleted', models.IntegerField(null=True, blank=True)),
                ('created_at', models.DateTimeField()),
                ('updated_at', models.DateTimeField()),
            ],
            options={
                'db_table': 'notification_categories',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='Notifications',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('title', models.CharField(max_length=255, null=True, blank=True)),
                ('from_field', models.CharField(max_length=255, null=True, db_column='from', blank=True)),
                ('to', models.CharField(max_length=255, null=True, blank=True)),
                ('type', models.CharField(max_length=255, null=True, blank=True)),
                ('status', models.CharField(max_length=255, null=True, blank=True)),
                ('options', models.CharField(max_length=255, null=True, blank=True)),
                ('content', models.TextField(null=True, blank=True)),
                ('created_at', models.DateTimeField()),
                ('updated_at', models.DateTimeField()),
                ('summary', models.CharField(max_length=255, null=True, blank=True)),
                ('deleted', models.IntegerField(null=True, blank=True)),
                ('sticky', models.IntegerField(null=True, blank=True)),
                ('channels', models.IntegerField(null=True, blank=True)),
                ('notification_category_id', models.IntegerField(null=True, blank=True)),
                ('to_admin', models.CharField(max_length=255, null=True, blank=True)),
            ],
            options={
                'db_table': 'notifications',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='NotificationsUsers',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('user_id', models.IntegerField(null=True, blank=True)),
                ('announcement_id', models.IntegerField(null=True, blank=True)),
                ('created_at', models.DateTimeField()),
                ('updated_at', models.DateTimeField()),
            ],
            options={
                'db_table': 'notifications_users',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='PhoneCache',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('auth_id', models.BigIntegerField()),
                ('phone', models.BigIntegerField(null=True, blank=True)),
                ('create_time', models.DateTimeField()),
                ('update_time', models.DateTimeField()),
            ],
            options={
                'db_table': 'phone_cache',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='PriceComboBonus',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('combo_plan_id', models.BigIntegerField(null=True, blank=True)),
                ('name', models.CharField(max_length=255, null=True, blank=True)),
                ('rate', models.IntegerField(null=True, blank=True)),
                ('created_at', models.DateTimeField()),
                ('updated_at', models.DateTimeField()),
            ],
            options={
                'db_table': 'price_combo_bonus',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='PriceComboPlans',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('user_id', models.BigIntegerField()),
                ('plan_id', models.BigIntegerField()),
                ('unit_price', models.DecimalField(null=True, max_digits=15, decimal_places=4, blank=True)),
                ('base_rate', models.IntegerField(null=True, blank=True)),
                ('base_name', models.CharField(max_length=255, null=True, blank=True)),
                ('start_at', models.DateField(null=True, blank=True)),
                ('created_at', models.DateTimeField()),
                ('updated_at', models.DateTimeField()),
            ],
            options={
                'db_table': 'price_combo_plans',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='PricePackageItems',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('user_id', models.BigIntegerField(null=True, blank=True)),
                ('api_id', models.BigIntegerField()),
                ('related_type', models.CharField(max_length=255)),
                ('related_id', models.CharField(max_length=255)),
                ('excess_price', models.DecimalField(null=True, max_digits=15, decimal_places=4, blank=True)),
                ('created_at', models.DateTimeField()),
                ('updated_at', models.DateTimeField()),
            ],
            options={
                'db_table': 'price_package_items',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='PricePlans',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('user_id', models.BigIntegerField(null=True, blank=True)),
                ('deleted', models.IntegerField(null=True, blank=True)),
                ('type', models.CharField(max_length=255, null=True, blank=True)),
                ('start_at', models.DateField(null=True, blank=True)),
                ('created_at', models.DateTimeField()),
                ('updated_at', models.DateTimeField()),
            ],
            options={
                'db_table': 'price_plans',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='PriceRangePlans',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('user_id', models.BigIntegerField()),
                ('plan_id', models.BigIntegerField()),
                ('start_at', models.DateField()),
                ('end_at', models.DateField()),
                ('price', models.DecimalField(null=True, max_digits=15, decimal_places=4, blank=True)),
                ('times', models.IntegerField()),
                ('created_at', models.DateTimeField()),
                ('updated_at', models.DateTimeField()),
            ],
            options={
                'db_table': 'price_range_plans',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='PriceStagePriceItems',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('stage_id', models.BigIntegerField(null=True, blank=True)),
                ('threshhold', models.IntegerField(null=True, blank=True)),
                ('unit_price', models.DecimalField(null=True, max_digits=15, decimal_places=4, blank=True)),
                ('created_at', models.DateTimeField()),
                ('updated_at', models.DateTimeField()),
            ],
            options={
                'db_table': 'price_stage_price_items',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='PriceStages',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('user_id', models.BigIntegerField(null=True, blank=True)),
                ('plan_id', models.BigIntegerField(null=True, blank=True)),
                ('start_at', models.DateField(null=True, blank=True)),
                ('created_at', models.DateTimeField()),
                ('updated_at', models.DateTimeField()),
            ],
            options={
                'db_table': 'price_stages',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='PriceUnits',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('user_id', models.BigIntegerField()),
                ('api_id', models.BigIntegerField()),
                ('plan_id', models.BigIntegerField()),
                ('start_at', models.DateField()),
                ('unit_price', models.DecimalField(null=True, max_digits=15, decimal_places=4, blank=True)),
                ('created_at', models.DateTimeField()),
                ('updated_at', models.DateTimeField()),
            ],
            options={
                'db_table': 'price_units',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='PriceWaivers',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('user_id', models.BigIntegerField(null=True, blank=True)),
                ('api_id', models.BigIntegerField(null=True, blank=True)),
                ('plan_id', models.BigIntegerField(null=True, blank=True)),
                ('times', models.IntegerField()),
                ('created_at', models.DateTimeField()),
                ('updated_at', models.DateTimeField()),
            ],
            options={
                'db_table': 'price_waivers',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='PrivateProjects',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('private_user_id', models.IntegerField(null=True, blank=True)),
                ('project_name', models.CharField(max_length=255, null=True, blank=True)),
                ('server_num', models.IntegerField(null=True, blank=True)),
                ('deploy_mode', models.CharField(max_length=255, null=True, blank=True)),
                ('deploy_date', models.DateField(null=True, blank=True)),
                ('code_version', models.CharField(max_length=255, null=True, blank=True)),
                ('notes', models.CharField(max_length=255, null=True, blank=True)),
                ('apis', models.TextField(null=True, blank=True)),
                ('create_at', models.DateTimeField(null=True, blank=True)),
                ('update_at', models.DateTimeField(null=True, blank=True)),
                ('license_start', models.DateField(null=True, blank=True)),
                ('license_end', models.DateField(null=True, blank=True)),
            ],
            options={
                'db_table': 'private_projects',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='PrivateUsers',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('email', models.CharField(max_length=255, unique=True, null=True, blank=True)),
                ('password_digest', models.CharField(max_length=255, null=True, blank=True)),
                ('company', models.CharField(max_length=255, null=True, blank=True)),
                ('name', models.CharField(max_length=255, null=True, blank=True)),
                ('mobile', models.CharField(max_length=255, null=True, blank=True)),
                ('business_admin_id', models.IntegerField(null=True, blank=True)),
                ('product_admin_id', models.IntegerField(null=True, blank=True)),
                ('technical_admin_id', models.IntegerField(null=True, blank=True)),
                ('operation_admin_id', models.IntegerField(null=True, blank=True)),
                ('enabled', models.IntegerField(null=True, blank=True)),
                ('status', models.IntegerField(null=True, blank=True)),
                ('created_at', models.DateTimeField()),
                ('updated_at', models.DateTimeField()),
                ('permission', models.TextField(null=True, blank=True)),
            ],
            options={
                'db_table': 'private_users',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='Product',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('product_category_id', models.BigIntegerField()),
                ('name', models.CharField(max_length=16)),
                ('apis_id', models.BigIntegerField()),
                ('api_doc_url', models.CharField(max_length=128)),
                ('api_desc', models.CharField(max_length=128)),
                ('api_scene', models.CharField(max_length=128)),
                ('api_price', models.BigIntegerField()),
                ('charge_type', models.IntegerField()),
                ('status', models.IntegerField()),
                ('create_time', models.DateTimeField(null=True, blank=True)),
                ('update_time', models.DateTimeField(null=True, blank=True)),
                ('quota', models.IntegerField()),
            ],
            options={
                'db_table': 'product',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='ProductCategory',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('name', models.CharField(max_length=16)),
                ('status', models.IntegerField()),
                ('create_time', models.DateTimeField(null=True, blank=True)),
                ('update_time', models.DateTimeField(null=True, blank=True)),
            ],
            options={
                'db_table': 'product_category',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='ProductKeywords',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('keywords_desc', models.CharField(max_length=16)),
                ('status', models.IntegerField()),
                ('create_time', models.DateTimeField(null=True, blank=True)),
                ('update_time', models.DateTimeField(null=True, blank=True)),
            ],
            options={
                'db_table': 'product_keywords',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='ProductKeywordsRelated',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('product_id', models.BigIntegerField()),
                ('keywords_id', models.BigIntegerField()),
                ('status', models.IntegerField()),
                ('create_time', models.DateTimeField(null=True, blank=True)),
                ('update_time', models.DateTimeField(null=True, blank=True)),
            ],
            options={
                'db_table': 'product_keywords_related',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='ProductRelated',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('product_id', models.BigIntegerField()),
                ('related_product_id', models.BigIntegerField()),
                ('status', models.IntegerField()),
                ('create_time', models.DateTimeField(null=True, blank=True)),
                ('update_time', models.DateTimeField(null=True, blank=True)),
            ],
            options={
                'db_table': 'product_related',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='Promotion',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('promotion_number', models.CharField(unique=True, max_length=64)),
                ('promotion_name', models.CharField(max_length=32)),
                ('description', models.TextField()),
                ('start_time', models.DateTimeField()),
                ('end_time', models.DateTimeField()),
                ('status', models.IntegerField()),
                ('create_time', models.DateTimeField(null=True, blank=True)),
                ('update_time', models.DateTimeField(null=True, blank=True)),
            ],
            options={
                'db_table': 'promotion',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='ReadReceipts',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('user_id', models.IntegerField(null=True, blank=True)),
                ('announcement_id', models.IntegerField(null=True, blank=True)),
                ('created_at', models.DateTimeField()),
                ('updated_at', models.DateTimeField()),
                ('admin_id', models.IntegerField(null=True, blank=True)),
            ],
            options={
                'db_table': 'read_receipts',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='RechargeRecord',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('user_id', models.IntegerField()),
                ('money', models.IntegerField()),
                ('certify_url', models.CharField(max_length=255)),
                ('recharge_status', models.IntegerField()),
                ('recharge_number', models.CharField(max_length=255, unique=True, null=True, blank=True)),
                ('pay_channel', models.IntegerField(null=True, blank=True)),
                ('create_time', models.DateTimeField()),
                ('update_time', models.DateTimeField(null=True, blank=True)),
                ('certify_name', models.CharField(max_length=100)),
                ('channel_trans_id', models.CharField(max_length=64)),
                ('payment_mode', models.CharField(max_length=64)),
                ('remark', models.CharField(max_length=256)),
            ],
            options={
                'db_table': 'recharge_record',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='SchemaMigrations',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('version', models.CharField(unique=True, max_length=255)),
            ],
            options={
                'db_table': 'schema_migrations',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='SdkApply',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('user_id', models.IntegerField()),
                ('bundles', models.TextField()),
                ('sdk_type_platform', models.CharField(max_length=255)),
                ('create_time', models.DateTimeField()),
                ('update_time', models.DateTimeField()),
                ('apply_status', models.IntegerField()),
            ],
            options={
                'db_table': 'sdk_apply',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='SdkBundles',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('user_id', models.BigIntegerField(null=True, blank=True)),
                ('start_at', models.DateField(null=True, blank=True)),
                ('end_at', models.DateField(null=True, blank=True)),
                ('bundle_ids', models.TextField(null=True, blank=True)),
                ('file_urls', models.TextField(null=True, blank=True)),
                ('archived', models.IntegerField(null=True, blank=True)),
                ('created_at', models.DateTimeField()),
                ('updated_at', models.DateTimeField()),
                ('json_oss_uuid', models.CharField(max_length=255, null=True, blank=True)),
                ('lic_oss_uuid', models.CharField(max_length=255, null=True, blank=True)),
                ('last_json_detail', models.TextField(null=True, blank=True)),
                ('dynamic_license', models.IntegerField(null=True, blank=True)),
            ],
            options={
                'db_table': 'sdk_bundles',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='SdkBundlesVersions',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('bundle_id', models.BigIntegerField(null=True, blank=True)),
                ('version_id', models.BigIntegerField(null=True, blank=True)),
                ('created_at', models.DateTimeField()),
                ('updated_at', models.DateTimeField()),
            ],
            options={
                'db_table': 'sdk_bundles_versions',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='SdkVersions',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('type_name', models.CharField(max_length=255)),
                ('platform', models.CharField(max_length=255, null=True, blank=True)),
                ('version', models.CharField(max_length=255, null=True, blank=True)),
                ('file_url', models.CharField(max_length=255, null=True, blank=True)),
                ('open_to_user', models.IntegerField(null=True, blank=True)),
                ('published', models.IntegerField(null=True, blank=True)),
                ('created_at', models.DateTimeField()),
                ('updated_at', models.DateTimeField()),
                ('dynamic_license', models.IntegerField(null=True, blank=True)),
            ],
            options={
                'db_table': 'sdk_versions',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='SupplierApiStatistics',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('date', models.CharField(max_length=255)),
                ('supplier_id', models.BigIntegerField()),
                ('supplier_service_id', models.CharField(max_length=100)),
                ('api_id', models.CharField(max_length=255)),
                ('invoked_times', models.IntegerField()),
                ('succeeded_times', models.IntegerField()),
                ('charged_times', models.IntegerField()),
                ('cost', models.DecimalField(max_digits=20, decimal_places=5)),
                ('avg_response_time', models.IntegerField()),
                ('update_time', models.DateTimeField()),
            ],
            options={
                'db_table': 'supplier_api_statistics',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='Suppliers',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('name', models.CharField(max_length=255, null=True, blank=True)),
                ('short_name', models.CharField(max_length=255, null=True, blank=True)),
                ('company', models.CharField(max_length=255, null=True, blank=True)),
                ('user_name', models.CharField(max_length=255, null=True, blank=True)),
                ('phone', models.CharField(max_length=255, null=True, blank=True)),
                ('email', models.CharField(max_length=255, null=True, blank=True)),
                ('is_deleted', models.IntegerField(null=True, blank=True)),
                ('created_at', models.DateTimeField()),
                ('updated_at', models.DateTimeField()),
            ],
            options={
                'db_table': 'suppliers',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='SupplierServices',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('supplier_id', models.BigIntegerField(null=True, blank=True)),
                ('name', models.CharField(max_length=255, null=True, blank=True)),
                ('price', models.DecimalField(null=True, max_digits=15, decimal_places=2, blank=True)),
                ('charge_type', models.IntegerField(null=True, blank=True)),
                ('is_deleted', models.IntegerField(null=True, blank=True)),
                ('created_at', models.DateTimeField()),
                ('updated_at', models.DateTimeField()),
            ],
            options={
                'db_table': 'supplier_services',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='TodoList',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('user_id', models.IntegerField()),
                ('operation_type', models.IntegerField()),
                ('operation_status', models.IntegerField()),
                ('operator_id', models.BigIntegerField()),
                ('operation_id', models.BigIntegerField()),
                ('create_time', models.DateTimeField(null=True, blank=True)),
                ('update_time', models.DateTimeField(null=True, blank=True)),
            ],
            options={
                'db_table': 'todo_list',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='UserAdminLogs',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('user_id', models.IntegerField(null=True, blank=True)),
                ('from_admin_id', models.IntegerField(null=True, blank=True)),
                ('to_admin_id', models.IntegerField(null=True, blank=True)),
                ('created_at', models.DateTimeField()),
                ('updated_at', models.DateTimeField()),
            ],
            options={
                'db_table': 'user_admin_logs',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='UserApiPrices',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('user_id', models.IntegerField(null=True, blank=True)),
                ('api', models.CharField(max_length=255, null=True, blank=True)),
                ('price', models.FloatField(null=True, blank=True)),
                ('effective_time', models.IntegerField(null=True, blank=True)),
                ('created_at', models.DateTimeField()),
                ('updated_at', models.DateTimeField()),
            ],
            options={
                'db_table': 'user_api_prices',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='Users',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('email', models.CharField(unique=True, max_length=255)),
                ('password_digest', models.CharField(max_length=255, null=True, blank=True)),
                ('name', models.CharField(max_length=255, null=True, blank=True)),
                ('enabled', models.IntegerField(null=True, blank=True)),
                ('created_at', models.DateTimeField()),
                ('updated_at', models.DateTimeField()),
                ('mobile', models.CharField(max_length=255, null=True, blank=True)),
                ('signup_uuid', models.CharField(max_length=255, null=True, blank=True)),
                ('signup_uuid_expire_after', models.DateTimeField(null=True, blank=True)),
                ('reset_password_uuid', models.CharField(max_length=255, null=True, blank=True)),
                ('reset_password_uuid_expire_after', models.DateTimeField(null=True, blank=True)),
                ('last_status', models.TextField(null=True, blank=True)),
                ('company', models.CharField(max_length=255, null=True, blank=True)),
                ('memo', models.CharField(max_length=255, null=True, blank=True)),
                ('latest_app_expiration_date', models.DateTimeField(null=True, blank=True)),
                ('new_user_uuid', models.CharField(max_length=255, null=True, blank=True)),
                ('uuid', models.CharField(max_length=255, unique=True, null=True, blank=True)),
                ('api_salesperson', models.CharField(max_length=255, null=True, blank=True)),
                ('admin_id', models.IntegerField(null=True, blank=True)),
                ('last_active_at', models.DateTimeField(null=True, blank=True)),
                ('token', models.CharField(max_length=255, null=True, blank=True)),
                ('token_expire_at', models.DateTimeField(null=True, blank=True)),
                ('is_test', models.IntegerField(null=True, blank=True)),
                ('status', models.IntegerField(null=True, blank=True)),
                ('quota', models.TextField(null=True, blank=True)),
                ('permission', models.TextField(null=True, blank=True)),
                ('industry', models.CharField(max_length=255)),
                ('address', models.CharField(max_length=255, null=True, blank=True)),
                ('unit_price', models.TextField(null=True, blank=True)),
                ('api_effect_time', models.DateTimeField(null=True, blank=True)),
                ('api_expire_time', models.DateTimeField(null=True, blank=True)),
                ('account_balance', models.DecimalField(null=True, max_digits=15, decimal_places=4, blank=True)),
                ('balance_hour', models.IntegerField(null=True, blank=True)),
                ('is_active', models.IntegerField(null=True, blank=True)),
                ('be_official_at', models.DateTimeField(null=True, blank=True)),
                ('step_status', models.IntegerField()),
                ('app_scene', models.CharField(max_length=255)),
                ('login_name', models.CharField(max_length=100)),
                ('user_source', models.CharField(max_length=30)),
            ],
            options={
                'db_table': 'users',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='UsersMessages',
            fields=[
                ('id', models.BigIntegerField(serialize=False, primary_key=True)),
                ('user_id', models.IntegerField(null=True, blank=True)),
                ('message_id', models.IntegerField(null=True, blank=True)),
                ('marked', models.IntegerField(null=True, blank=True)),
                ('marked_at', models.DateTimeField(null=True, blank=True)),
                ('created_at', models.DateTimeField()),
                ('updated_at', models.DateTimeField()),
            ],
            options={
                'db_table': 'users_messages',
                'managed': False,
            },
        ),
    ]
